package com.visionet.school.app.web.common.web;

import com.visionet.school.app.web.entity.vo.LoginAccountVo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by hxpeng on 2017/4/29.
 * 对session，request,application的attribute进行修改
 */
public interface IWebContext {

    HttpServletRequest getRequest();
    HttpServletResponse getResponse();

    Object getSessionAttr(String key);
    void setSessionAttr(String key, Object value);
    void removeSessionAttr(String key);

    Object getRequestAttr(String key);
    void setRequestAttr(String key, Object value);
    void removeRequestAttr(String key);


    void setLoginAccountVo(LoginAccountVo loginAccountVo);
    LoginAccountVo getLoginAccountVo();


}
